﻿using ERP.Domain.Products;
using Product.API.ISerivces.DTOS;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Product.API.ISerivces.Process
{
    /// <summary>
    /// 工序服务接口
    /// </summary>
    public interface IProcessSerivce
    {
        /// <summary>
        /// 工序添加
        /// </summary>
        /// <param name="process">工序信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> CreateProcess(ERP.Domain.Products.Process process);

        /// <summary>
        /// 工序修改
        /// </summary>
        /// <param name="process">工序信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateProcess(ERP.Domain.Products.Process process);

        /// <summary>
        /// 工序删除
        /// </summary>
        /// <param name="Id">工序主键</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteProcess(int Id);

        /// <summary>
        /// 批量添加工序
        /// </summary>
        /// <param name="entity">工序数组</param>
        /// <returns>返回受影响函数</returns>
        Task<int> BatchProcess(List<BatchProcessDTO> entity, Guid productProcessNumber);

        /// <summary>
        /// 批量修改工序
        /// </summary>
        /// <param name="entity">工序数组</param>
        /// <param name="processRouteNumber">工艺流程编号</param>
        /// <returns>返回受影响行数</returns>
        Task<int> BatchUpdateProcess(List<BatchUpdateProcessDTO> entity, Guid processRouteNumber);

    }
}
